<?php
class Front_Service_Links
{
	
	/**
	 * Create A Record
	 *
	 * @param
	 *       	 rowSet
	 * @return boolean
	 */
	public static function add($row)
	{
		$model = new Links();
		return $model->add($row);
	}
	
	/**
	 * Update One Row
	 *
	 * @param $row rowSet       	
	 * @param $order_id int       	
	 * @return boolean
	 */
	public static function update($row, $pri)
	{
		$model = new Links();
		return $model->update($row, $pri);
	}
	
	public static function delete($pri)
	{
		$model = new Links();
		return $model->delete($pri);
	}
	
	public static function getByField($value, $field = 'link_id', $colums = "*")
	{
		$model = new Links();
		return $model->getByField($value, $field, $colums);
	}
	public static function getAll()
	{
		$model = new Links();
		return $model->getAll();
	}
	public static function getByCondition($condition = array (), $type = '*', $order = "", $pageSize = 0, $page = 1)
	{
		$model = new Links();
		$rows = $model->getByCondition($condition, $type, $order, $pageSize, $page);
		return $rows;
	}

}